package org.dromara.tearoom.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.tearoom.domain.TerImgInfo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 贴图管理视图对象 ter_img_info
 *
 * @author xch
 * @date 2025-05-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TerImgInfo.class)
public class TerImgInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 名称
     */
    private String  name;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 地址
     */
    private String path;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;


    /**
     * 排序号
     */
    @ExcelProperty(value = "排序号")
    private Long orderNo;

    /**
     * 图片类型
     */
    @ExcelProperty(value = "图片类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ter_img_ype")
    private Long imgType;

    /**
     * 图片类型Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "imgType")
    private String imgTypeUrl;
    /**
     * 图片url
     */
    @ExcelProperty(value = "图片url")
    private String imgUrl;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "imgUrl")
    private String imgUrlUrl;
    /**
     * 关联标识
     */
    @ExcelProperty(value = "关联标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ter_asso_type")
    private String assoId;

    /**
     * 模块
     */
    private String module;


}
